<template>
    <Demo @hello="showHelloMsg" msg="你好啊" school="尚硅谷">
      <span>尚硅谷</span>
    </Demo>
</template>

<script>
  import Demo from './compoents/Demo.vue'
  export default {
    name: 'App',
    components:{
      Demo,
    },
    setup(){
      function showHelloMsg(value){
        console.log(`hello vue3  我收到的参数是${value}`)
      }

      return {
        showHelloMsg  
      }
    }
  }
</script>

